# -*- coding: utf-8 -*-

import subprocess

"""
A ssh based command dispatch system
"""

machines = ["10.0.1.40",
            "10.0.1.50",
            "10.0.1.51",
            "10.0.1.60",
            "10.0.1.80"]

cmd = "uname"
for machine in machines:
    subprocess.call("ssh root@%s %s".format(machine, cmd), shell=True)
